package cn.hgd11.security.controller;

import cn.hgd11.security.common.CommonResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wangkaige
 */
@RestController
public class TestController {

    @GetMapping("hello")
    public CommonResult<String> hello(@RequestParam(value = "param") String param) {
        return CommonResult.success("hello " + param);
    }
}
